package com.jt.tenant.conn;

import com.jt.tenant.app.JTApplication;
import com.zcx.helper.http.AsyCallBack;
import com.zcx.helper.http.note.HttpInlet;

import org.json.JSONObject;

@HttpInlet(Conn.INLET_SET_FREEWAY_APPLY)
public class SetFreewayApply extends JTAsyGet<SetFreewayApply.Info> {

    public String token = JTApplication.jtPreferences.readToken();

    public String userId = JTApplication.jtPreferences.readUserID();

    public String userName;

    public String sex;

    public String idCard;

    public String driverNum;

    public String carNum;

    public String address;

    public String woPayCode;

    public String idCardList;

    public String driverNumList;

    public String carNumList;

    public SetFreewayApply(AsyCallBack<Info> asyCallBack) {

        super(asyCallBack);

    }

    @Override
    protected Info parser(JSONObject object) {

        JSONObject apiTYF = object.optJSONObject("apiTYF");

        JSONObject head = apiTYF.optJSONObject("head");

        Info info = new Info();

        info.msg = head.optString("msg");

        info.code = head.optString("code");


        return info;
    }

    public static class Info{

        public String msg;

        public String code;

    }

}
